<script type="text/javascript">
    $(document).ready(function(){
        $("#editEmployeeForm").validate({
            rules: {
                studentid:{
                    minlength: 6,
                    maxlength: 6,
                },
                phone:{
                    number: true,
                    minlength: 10,
                    maxlength: 10
                },
                phone1: {
                    number: true,
                    minlength: 3,
                    maxlength: 3
                },
                phone2: {
                    number: true,
                    minlength: 3,
                    maxlength: 3
                },
                phone3: {
                    number: true,
                    minlength: 4,
                    maxlength: 4
                },
                email: "email",
                password: {
                    minlength: 5
                },
            },
        });               
  });
</script>

<% form_for :customer do |form| %>

  <fieldset>
  <legend>Enter Customer Details</legend> 

  <%= error_messages_for 'customer' %>

  <%= render :partial => "customer_fields", :locals => {:form => form} %>
  
  <div class="form_row">  
    <%= submit_tag "Save Changes", :class => "submit" %> 
  </div>
   
  </fieldset> 
  
<% end %>

